﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FinalTestMachine.Motion.Product
{
    /// <summary>
    /// 测试结果
    /// </summary>
    public enum TestResult
    {
        OK = 0,
        NG = 1,
        NoTest = 2,
        Limited,//当前工位未启用，该工位被疲敝掉了
    }

    /// <summary>
    /// 产品测试测试站信息
    /// </summary>
    public class ProductTestStation
    {
        public ProductTestStation()
        {
            StationTestItems = new List<ProductTestStationTestItem>();
        }

        /// <summary>
        /// 测试站
        /// </summary>
        public string TestStationName { get; set; }

        /// <summary>
        /// 测试总结果
        /// </summary>
        public TestResult Result { get; set; }

        /// <summary>
        /// 失败的原因
        /// </summary>
        public string FailedMsg { get; set; }

        /// <summary>
        /// 测试开始时间
        /// </summary>
        public string StartTime { get; set; }

        /// <summary>
        /// 测试结束时间
        /// </summary>
        public string EndTime { get; set; }

        /// <summary>
        /// 测试时间
        /// </summary>
        public double TotalTime { get; set; }

        /// <summary>
        /// 测试的数据项
        /// </summary>
        public List<ProductTestStationTestItem> StationTestItems { get; set; } = new List<ProductTestStationTestItem>();

      
    }
}
